﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace Eagleshoes.ERPService
{
	[XmlRoot]
	public class PackagingCarton
	{
		/// <summary>
		/// 外箱条码
		/// </summary>
		[XmlAttribute]
		public string CartonBarcode
		{
			get;
			set;
		}

		/// <summary>
		/// 销售单号
		/// </summary>
		[XmlAttribute]
		public string SalesOrderCode
		{
			get;
			set;
		}

		/// <summary>
		/// 装箱单号
		/// </summary>
		[XmlAttribute]
		public string PackagingOrderCode
		{
			get;
			set;
		}

		
		private List<PackagingBox> boxes=new List<PackagingBox>();

		/// <summary>
		/// 装箱明细
		/// </summary>
		[XmlArray(IsNullable = false)]
		[XmlArrayItem(Type = typeof(PackagingBox), IsNullable = false)]
		public List<PackagingBox> Boxes
		{
			get
			{
				return boxes;
			}
		} 
	}
}